package com.cloud.exceptions;

import com.cloud.rest.BaseEnumError;

/**
 * 系统异常：配置文件、基础运行环境等导致的异常
 */
public class SystemException extends BaseRuntimeException {

    public static SystemException build(BaseEnumError error) {
        return new SystemException(error);
    }

    public static SystemException build(BaseEnumError error, Throwable cause) {
        return new SystemException(error, cause);
    }

    public SystemException(BaseEnumError error) {
        this(error, null);
    }

    public SystemException(BaseEnumError error, Throwable cause) {
        super(error, cause);
    }

}
